package com.atguigu.gmallsugar.service.impl;

import com.atguigu.gmallsugar.bean.Kw;
import com.atguigu.gmallsugar.bean.Traffic;
import com.atguigu.gmallsugar.mapper.TrafficMapper;
import com.atguigu.gmallsugar.service.TrafficService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Project:gmallRealTime
 * Package:com.atguigu.gmallsugar.service.impl
 * Author: ZengHaiFeng
 * CreateTime:2023/5/8 16:14:04
 * Description: Todo
 * Version：1.0
 */
@Service
public class TrafficServiceImpl implements TrafficService {
    @Autowired
    private TrafficMapper trafficMapper;
    @Override
    public List<Traffic> traffic(Integer date) {
        return trafficMapper.traffic(date);
    }

    @Override
    public List<Kw> kw(Integer date) {
        return trafficMapper.kw(date);
    }
}
